package cn.qihua.dao;

import java.util.List;

import org.hibernate.SessionFactory;

import cn.qihua.model.SysRole;

public interface ISysRoleDAO {

	// property constants
	public static final String TEXT = "text";
	public static final String DESCRIPTION = "description";
	public static final String RESOURCE_IDS = "resourceIds";
	public static final String AVAILABLE = "available";

	public abstract void setSessionFactory(SessionFactory sessionFactory);

	public abstract void save(SysRole transientInstance);

	public abstract void delete(SysRole persistentInstance);

	public abstract SysRole findById(Integer id);

	public abstract List findByExample(SysRole instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByText(Object text);

	public abstract List findByDescription(Object description);

	public abstract List findByResourceIds(Object resourceIds);

	public abstract List findByAvailable(Object available);

	public abstract List findAll();

	public abstract SysRole merge(SysRole detachedInstance);

	public abstract void attachDirty(SysRole instance);

	public abstract void attachClean(SysRole instance);

}